package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品Sku对象 product_sku
 * 
 * @author 李其伟
 * @date 2023-08-11
 */
public class ProductSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String sku;

    /** 商品sku */
    @Excel(name = "商品sku")
    private String skuCode;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 商品副标题 */
    @Excel(name = "商品副标题")
    private String subTitle;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 商品销售属性 */
    @Excel(name = "商品销售属性")
    private String spData;

    /** 销量 */
    @Excel(name = "销量")
    private Long sale;

    /** 资源标识 */
    @Excel(name = "资源标识")
    private String resUuid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSku(String sku)
    {
        this.sku = sku;
    }

    public String getSku()
    {
        return sku;
    }
    public void setSkuCode(String skuCode)
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode()
    {
        return skuCode;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getPic()
    {
        return pic;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSpData(String spData) 
    {
        this.spData = spData;
    }

    public String getSpData() 
    {
        return spData;
    }
    public void setSale(Long sale) 
    {
        this.sale = sale;
    }

    public Long getSale() 
    {
        return sale;
    }

    public String getResUuid() {
        return resUuid;
    }

    public void setResUuid(String resUuid) {
        this.resUuid = resUuid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sku", getSku())
            .append("skuCode", getSkuCode())
            .append("title", getTitle())
            .append("subTitle", getSubTitle())
            .append("pic", getPic())
            .append("price", getPrice())
            .append("spData", getSpData())
            .append("sale", getSale())
            .append("resUuid", getResUuid())
            .toString();
    }
}
